<?php
	require("function.php");
	header('Content-type:text/html;charset=utf-8');
	$con = getconnect("china");
	$start = $_POST['start'];
	$count = $_POST['count'];
	$sql = "select * from texts_copy limit $start,$count";
	$result = mysqli_query($con,$sql);
	$arr= array();
	$i=0;
	while($row=mysqli_fetch_assoc($result)){
		$arr[$i++] = $row;
	}
	echo json_encode($arr);
?>